
/*********************************************************************************************************************/
/*MAP EDITION*********************************************************************************************************/
/*********************************************************************************************************************/

function MapEditor() {

	this.mouseClick = function(e){
		/*function that do what happen when you click with your mouse*/

		//change the tile for map editing
		if (mapEditing) {
			if (0<=xmouse && xmouse<tile.length) {
				if (0<=ymouse && ymouse<tile[xmouse].length) {
					menuEditor.getSelectedArray()[xmouse][ymouse] = menuEditor.getSelectedItemNumber();
				}
			}
		}
	}
}